package twu.shuhbam.library;


import org.junit.Test;
import twu.shubham.library.MembersRecord;

import static org.junit.Assert.assertEquals;

public class MembersRecordTests {

    MembersRecord member = new MembersRecord(1111111,"Amit","551122","amit@gmail.com") ;
    MembersRecord notMember = new MembersRecord(1000,"Amit","551122","amit@gmail.com") ;
    @Test
    public void forLibraryNumberLessThan1111111PasswordWillNotBeGenerated() throws Exception {


        assertEquals(0, notMember.passwordGenerator());
    }

    @Test
    public void forLibraryNumberMoreThan1111110PasswordWillBeGenerated() throws Exception {


        assertEquals(1, member.passwordGenerator());
    }
}
